package com.atzzgc.http;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/httpclient")
public class MyHttpClient {

	
	@RequestMapping("/aa")
	@ResponseBody
	public Map<String, Object> myHttp(Student student ){
		
		
		Map<String, Object> map =new HashMap<>();
		
		int age = student.getAge();
		int num = student.getNum();
		if (age>num) {
			
			map.put("isBoolean", true);
		}else {
			map.put("isBoolean", null);
			
		}
		
		return map;
	}
	
	
}
